package top.toptimus.dto.design;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 设计点表
 *
 * @author Doge
 */
@NoArgsConstructor
@Data
@AllArgsConstructor
public class DesignOptionDTO {
    private Integer designId;
    private String styleCategoryCd;
    private String itemCategoryCd;
    private String itemCd;//
    private String itemValue;//
    private Integer itemSort;
    private String itemNameCn;//
    private String itemShortNameCn;
    private String itemNameEn;
    private String itemShortNameEn;
    private String itemNameJp;
    private String itemShortNameJp;
    private Double itemCost;
    private Double itemCostMtm;
    private Double itemUnitCost;
    private Integer itemNetSort;
    private Integer itemCutParts;
    private Integer fileId;
    private Integer havetoFlag;
    private String remarks;
    private Integer enableFlag;
    private Integer deleteFlag;
    private Integer version;
    private Date createDate;
    private Date updateDate;
    private Integer createUser;
    private Integer updateUser;

    /**
     * 新建测试设计点
     *
     * @param itemValue 设计点编码
     * @return this
     */
    public DesignOptionDTO buildTest(String itemValue) {
        this.itemValue = itemValue;
        return this;
    }
}
